package action;

import annotation.Action;
import annotation.Controller;
import annotation.Result;
import enu.ResultType;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;

@Controller
public class OrderAction {

    @Action(path = "/create",results = @Result(path = "/showSuccess",type = ResultType.REDIRECT))
    public String create(HttpServletRequest request, HttpServletResponse response){
        System.out.println("OrderAction.create()");
        String no="123";
        return "success?no="+no;
    }

}
